/**
 * Alipay.com Inc.
 * Copyright (c) 2004-2013 All Rights Reserved.
 */
package com.pingan.mobilegw.mobileservice.invoke.exception;

import com.pingan.mobilegw.adapterservice.ResultEnum;

/**
 * RPC异常
 * 
 * @author jinwenxiang
 * @version $Id: RpcException.java, v 0.1 2013-11-27 下午7:03:07 jinwenxiang Exp $
 */
public class RpcException extends RuntimeException {

    /** serialVersionUID */
    private static final long serialVersionUID = 2836356450844934137L;

    /** 结果码 */
    private ResultEnum        resultCode;

    /**
     * 构造函数
     * 
     * @param resultCode 结果码
     */
    public RpcException(ResultEnum resultCode) {
        this.resultCode = resultCode;
    }

    /**
     * Getter method for property <tt>resultCode</tt>.
     * 
     * @return property value of resultCode
     */
    public ResultEnum getResultCode() {
        return resultCode;
    }

    /**
     * Setter method for property <tt>resultCode</tt>.
     * 
     * @param resultCode value to be assigned to property resultCode
     */
    public void setResultCode(ResultEnum resultCode) {
        this.resultCode = resultCode;
    }

}
